logologo
指南
API
每周快讯
示例入手
贡献
简体中文
English
指南
API
每周快讯
示例入手
贡献
简体中文
English
logologo
简介
Makepad 速查手册
命令行工具

Sdf2d

builtin

abs
acos
all
any
asin
atan
ceil
clamp
cos
cross
degrees
dFdx, dFdy
distance
dot
equal
exp
exp2
faceforward
floor
fract
greaterThan
greaterThanEqual
inverse
inversesqrt
length
lessThan
lessThanEqual
log
log2
matrixCompMult
max
min
mix
mod
normalize
not
notEqual
pow
radians
reflect
refract
2D-samples a render target texture. [???]
sign
sin
smoothstep
sqrt
step
tan
transpose

fields

aa
blur
clip
dist
has_clip
last_pos
old_shape
post
result
scale_factor
shape
start_pos

methods

bool

intersect
subtract
union

draw

primitives

arc2
box_all
box_x
box_y
box
circle
hexagon
hline
rect
close_path
fill_keep_premul
fill_keep
fill_premul
fill
line_to
move_to
stroke_keep
stroke

effects

gloop
glow_keep
glow

transform

rotate
scale
translate
clear
viewport

#blur

  • Type: float
  • Description: Represents the blur factor applied to the viewport or object. A small value indicates minimal blur, while a larger value increases the blur effect, used to soften edges or apply Gaussian blur effects.
📝 在 GitHub 上编辑此页
Previous Pageaa
Next Pageclip